package com.mitcub.panda.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mitcub.panda.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;


/**
 * @项目名称: panda
 * @类名称: Admin
 * @类描述: 系统菜单
 * @作者: tangloong
 * @创建时间: 2021/11/2 17:22
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_auth_rule")
public class Menu extends BaseEntity {

    private String name;
    private String icon;
    private String url;
    private Long pid;
    private Integer type;
    private String permission;
    private Integer status;
    private Integer sort;

    @TableField(exist = false)
    private Boolean open;
    @TableField(exist = false)
    private Boolean checked;

    // 子菜单
    @TableField(exist = false)
    private List<Menu> children;
}